<template>
	<view class="nav">
		<ul class='ul1'>
			<li v-for="item in data" :key="item.id" @click='go(item.id)'>
				<img :src="item.icon_url" alt="">
				<p>{{item.name}}</p>
			</li>
		</ul>
	</view>
</template>

<script>
	export default {
		name: "list_shop",
		props:['data'],
		data() {
			return {
				
			};
		},
		methods:{
			go(id){
				wx.navigateTo({
					url:'../lists/lists?id='+id
				})
			}
		}
	}
</script>

<style lang='scss'>
	.nav {
		.ul1 {
			display: flex;
			justify-content: space-between;

			img {
				width: 100rpx;
				height: 100rpx;
			}

			li {
				display: flex;
				flex-direction: column;
				text-align: center;
			}
		}

	}
</style>
